package com.spring.bean.container;

import org.springframework.lang.Nullable;

/**
 * @ClassName: MyBeanTest
 * @Author: suncx
 * @CreateDate: 2020-03-17 11:53
 * @Description:
 */

public class MyBeanTest {
    private void initMethod() {
        System.out.println("this is init-method");
    }

    private String testStr = "testStr";

    public String getTestStr() {
        return testStr;
    }


    public String testSpringAu(@Nullable String a) {
        return testStr;
    }

    public void setTestStr(String testStr) {
        this.testStr = testStr;
    }


    public static void main(String[] args) {
        try {
            ClassLoader classLoader = MyBeanTest.class.getClassLoader();
            Class<?> a = classLoader.loadClass("com.spring.bean.container.MyBeanTest");
            System.out.println(a.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
